<?php $format = Yii::app()->format; ?>

<div class="view">

	<div>
		<?php
		$properties = array(
			'items'=>$data->getMenu($this->action->id, true),
			'htmlOptions'=>array(
				'class'=>'operations',
			),
			'encodeLabel'=>false,
		);
		$this->widget('zii.widgets.CMenu', $properties);
		?>
	</div>
	
	<hr />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('employeeId')); ?>:</b>
	<?php echo CHtml::encode($data->employee->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('code')); ?>:</b>
	<?php echo CHtml::encode($data->code); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php echo CHtml::encode($data->status); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('expiredDate')); ?>:</b>
	<?php
	if ($data->unixExpiredDate) {
		echo $format->formatDate($data->unixExpiredDate);
	}
	?>
	<br />

	<?php echo $format->formatNtext($data->note); ?>

</div>